file chooser: Don't show 'Enter Location' in save modes
authorMatthias Clasen <mclasen@redhat.com>
Sun, 18 Jan 2015 22:39:05 +0000 (17:39 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 18 Jan 2015 22:39:05 +0000 (17:39 -0500)
In these modes, the entry is permanently visible anyway.

gtk/gtkfilechooserwidget.c

index 204a877dae197775c886454885979160eeb92d7a..f3cdd4c76d9cd968bfdf59b8e87d2b5ea8c1635c 100644 (file)
@@ -2540,6 +2540,7 @@ update_appearance (GtkFileChooserWidget *impl)
       priv->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER)
     {
       save_widgets_create (impl);
+      gtk_places_sidebar_set_show_enter_location (GTK_PLACES_SIDEBAR (priv->places_sidebar), FALSE);
 
       if (priv->select_multiple)
        {
@@ -2552,6 +2553,7 @@ update_appearance (GtkFileChooserWidget *impl)
           priv->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER)
     {
       save_widgets_destroy (impl);
+      gtk_places_sidebar_set_show_enter_location (GTK_PLACES_SIDEBAR (priv->places_sidebar), TRUE);
       location_mode_set (impl, priv->location_mode);
     }